package com.yy.springcloud.service;

import com.yy.springcloud.entity.CommonResult;
import com.yy.springcloud.entity.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

@Service
//这个值是在eureka中服务的名称
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentService {
    @GetMapping(value = "/payment/get")
    public CommonResult<Payment> getPayment();
}
